<div>
    <div class="row">
        <div class="col-md-2 padding-r-0">
            <div class=" border-radius ">
                <div class="margin-xs-r  treeview attendance-staff">
                    <ul class="list-group text-center border-radius"
                        v-if="reserveServiceManageInfo.catalogs && reserveServiceManageInfo.catalogs.length>0">
                        <!--  -->
                        <li class="list-group-item node-orgTree "
                            v-for="(item,index) in reserveServiceManageInfo.catalogs" @click="swatchReserveCatalog(item)"
                            :class="{'vc-node-selected':reserveServiceManageInfo.conditions.catalogId==item.catalogId}">
                            {{item.name}}
                        </li>
                    </ul>
                    <ul class="list-group text-center border-radius" v-else>
                        <!--  -->
                        <li class="list-group-item node-orgTree " @click="_addCatalog()">
                            添加目录
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-md-10">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox ">
                        <div class="ibox-title">
                            <h5><span>
                                    <vc:i18n name="查询条件"></vc:i18n>
                                </span></h5>
                            <div class="ibox-tools" style="top:10px;">
                            </div>
                        </div>
                        <div class="ibox-content">
                            <div class="row">
                                <div class="col-sm-4">
                                    <div class="form-group">
                                        <input type="text" :placeholder="vc.i18n('请选择服务ID','reserveServiceManage')"
                                            v-model="reserveServiceManageInfo.conditions.goodsId" class=" form-control">
                                    </div>
                                </div>
                                <div class="col-sm-4">
                                    <div class="form-group">
                                        <input type="text" :placeholder="vc.i18n('请选择服务名称','reserveServiceManage')"
                                            v-model="reserveServiceManageInfo.conditions.goodsName"
                                            class=" form-control">
                                    </div>
                                </div>
                                <div class="col-sm-3">
                                    <select class="custom-select" v-model="reserveServiceManageInfo.conditions.state">
                                        <option selected disabled value="">{{vc.i18n('请选择状态','reserveServiceManage')}}
                                        </option>
                                        <option value="1001">{{vc.i18n('未上架','reserveServiceManage')}}</option>
                                        <option value="2002">{{vc.i18n('上架','reserveServiceManage')}}</option>
                                    </select>
                                </div>
                                <div class="col-sm-1">
                                    <button type="button" class="btn btn-primary btn-sm"
                                        v-on:click="_queryReserveServiceMethod()">
                                        <i class="glyphicon glyphicon-search"></i> <span>
                                            <vc:i18n name="查询"></vc:i18n>
                                        </span>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox">
                        <div class="ibox-title">
                            <h5><span>
                                    <vc:i18n name="预约服务" namespace="reserveServiceManage"></vc:i18n>
                                </span></h5>
                            <div class="ibox-tools" style="top:10px;">
                                <button type="button" class="btn btn-primary btn-sm"
                                    v-on:click="_openAddReserveServiceModal()">
                                    <i class="glyphicon glyphicon-plus"></i>
                                    <span>
                                        <vc:i18n name="添加服务" namespace="reserveServiceManage"></vc:i18n>
                                    </span>
                                </button>
                            </div>
                        </div>
                        <div class="ibox-content">
                            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                                <thead>
                                    <tr>
                                        <th class="text-center"><span>
                                                <vc:i18n name='服务封面' namespace='reserveServiceManage'></vc:i18n>
                                            </span></th>
                                        <th class="text-center"><span>
                                                <vc:i18n name='名称(编号)' namespace='reserveServiceManage'></vc:i18n>
                                            </span></th>
                                        <th class="text-center"><span>
                                                <vc:i18n name='参数' namespace='reserveServiceManage'></vc:i18n>
                                            </span></th>
                                        <th class="text-center"><span>
                                                <vc:i18n name='预约方式' namespace='reserveServiceManage'></vc:i18n>
                                            </span></th>
                                       
                                        <th class="text-center"><span>
                                                <vc:i18n name='预约次数' namespace='reserveServiceManage'></vc:i18n>
                                            </span></th>
                                        <th class="text-center"><span>
                                                <vc:i18n name='预约数量' namespace='reserveServiceManage'></vc:i18n>
                                            </span></th>
                                        <th class="text-center"><span>
                                                <vc:i18n name='上门费' namespace='reserveServiceManage'></vc:i18n>
                                            </span></th>
                                        <th class="text-center"><span>
                                                <vc:i18n name='有效期' namespace='reserveServiceManage'></vc:i18n>
                                            </span></th>
                                            <th class="text-center"><span>
                                                <vc:i18n name='开始预约时间' namespace='reserveServiceManage'></vc:i18n>
                                            </span></th>
                                        <th class="text-center"><span>
                                                <vc:i18n name='排序' namespace='reserveServiceManage'></vc:i18n>
                                            </span></th>
                                        <th class="text-center"><span>
                                                <vc:i18n name='状态' namespace='reserveServiceManage'></vc:i18n>
                                            </span></th>
                                        <th class="text-center"><span>
                                                <vc:i18n name='操作'></vc:i18n>
                                            </span></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr v-for="reserveService in reserveServiceManageInfo.reserveServices">
                                        <td class="text-center" v-if="reserveService.imgUrl">
                                            <img style="width: 60px; height: 60px; border-radius: 5px;"
                                                v-bind:src="reserveService.imgUrl"></img>
                                        </td>
                                        <td class="text-center" v-else>
                                            <img style="width: 60px; height: 60px; border-radius: 5px;"
                                                src="/img/noPhoto.jpg">
                                        </td>
                                        <td class="text-center">{{reserveService.goodsName}}({{reserveService.goodsId}})
                                        </td>
                                        <td class="text-center">{{reserveService.paramsName}}</td>
                                        <td class="text-center">{{reserveService.paramWay == '1'?'日':'周'}}</td>
                                       
                                        <td class="text-center">{{reserveService.maxQuantity}}</td>
                                        <td class="text-center">{{reserveService.hoursMaxQuantity}}</td>
                                        <td class="text-center">{{reserveService.price}}</td>
                                        <td class="text-center">{{reserveService.startDate}}~{{reserveService.endDate}}
                                        </td>
                                        <td class="text-center">{{reserveService.startTime}}</td>
                                        <td class="text-center">{{reserveService.sort}}</td>
                                        <td class="text-center">{{reserveService.state=='1001'?'未上线':'上线'}}</td>
                                        <td class="text-center">
                                            <div class="btn-group">
                                                <button class="btn-white btn btn-xs"
                                                    v-on:click="_openReserveServicePersonModel(reserveService)"><span>
                                                        <vc:i18n name='预约服务'></vc:i18n>
                                                    </span></button>
                                            </div>
                                            <div class="btn-group">
                                                <button class="btn-white btn btn-xs"
                                                    v-on:click="_openEditReserveServiceModel(reserveService)"><span>
                                                        <vc:i18n name='修改'></vc:i18n>
                                                    </span></button>
                                            </div>
                                            <div class="btn-group">
                                                <button class="btn-white btn btn-xs"
                                                    v-on:click="_openDeleteReserveServiceModel(reserveService)"><span>
                                                        <vc:i18n name='删除'></vc:i18n>
                                                    </span></button>
                                            </div>
                                        </td>

                                    </tr>
                                </tbody>
                                <tfoot>
                                    <tr>
                                        <td colspan="7">
                                            <ul class="pagination float-right"></ul>
                                        </td>
                                    </tr>
                                </tfoot>
                            </table>
                            <!-- 分页 -->
                            <vc:create path="frame/pagination"></vc:create>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <vc:create path="reserve/addReserveServicePerson"></vc:create>
    <vc:create path="reserve/deleteReserveDining"></vc:create>

    </div>